package com.yyx.springcloud.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * ClassName: Result
 * Package: com.yyx.springcloud.pojo
 * Description:
 *
 * @Author: yyx
 * @Create: 2025/7/23 - 14:54
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Result <T>{

    private Integer code;     //编码
    private String message;   //信息提示
    private T data;           //泛型写什么就是什么

    public Result(Integer code,String message){
        this(code,message,null);
    }
}
